package net.zjitc.controller;

import net.zjitc.pojo.User;
import net.zjitc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class UserController {
//    @Autowired
//    private UserService userService;
//
//    @RequestMapping("/findAll")
//    @ResponseBody
//    public List<User> findAll() {
//        System.out.println(userService.findAll());
//        return userService.findAll();
//    }
}
